package com.java.userservice.service;

import com.java.common.model.Result;
import com.java.common.service.BaseService;
import com.java.userservice.model.Role;
import com.java.userservice.model.dto.RolePermissionDTO;

import java.util.List;

public interface RoleService extends BaseService<Role> {

    List<Role> listAll();

    /**
     * 查询角色已有权限
     * @param
     * @return
     */
    Result listPermission();

    Result listPermissionByRoleId(Integer id);

    /**
     * 添加权限
     * @param rolePermissionDTO
     * @return
     */
    Result savePermission(RolePermissionDTO rolePermissionDTO);

}
